System and method for providing a breathing gas

ABSTRACT

Systems and methods for providing a breathing gas are provided. In one embodiment, the method includes sensing a sensed parameter associated with delivery of the breathing gas, changing a control parameter associated with a flow/pressure control element in response to a difference between the sensed parameter and a first predetermined sensed parameter value during a first portion of a breathing cycle, determining a transition from the first portion to a second portion of the breathing cycle based at least in part on the changing control parameter, changing the control parameter to cause a first change in the sensed parameter during the second portion of the breathing cycle based at least in part on the determined transition, and changing the control parameter to cause a second change in the sensed parameter during a third portion of the breathing cycle based at least in part on the first predetermined sensed parameter value.

This is a continuation-in-part (CIP) of U.S. patent application Ser. No. 10/601,720, filed Jun. 23, 2003, and also claims priority to U.S. provisional patent application Ser. No. 60/580,845, filed Jun. 18, 2004.

FIELD OF THE INVENTION

The invention relates generally to the delivery of a breathing gas to an airway of a patient, and more particularly, to the delivery of a breathing gas coordinated with the breathing cycle of the patient.

BACKGROUND

Obstructive sleep apnea is an airway breathing disorder caused by relaxation of the muscles of the upper airway to the point where the upper airway collapses or becomes obstructed by these same muscles. It is known that obstructive sleep apnea can be treated through the application of pressurized air to the nasal passages of a patient. The application of pressurized air forms a pneumatic splint in the upper airway of the patient thereby preventing the collapse or obstruction thereof.

Within the treatment of obstructive sleep apnea, there are several known CPAP regimens including, for example, mono-level CPAP and bi-level CPAP. Mono-level CPAP involves the constant application of a single therapeutic or medically prescribed CPAP level. That is, through the entire breathing cycle, a single therapeutic positive air pressure is delivered to the patient. While such a regimen is successful in treating obstructive sleep apnea, some patients experience discomfort when exhaling because of the level of positive air pressure being delivered to their airways during exhalation.

In response to this discomfort, bi-level CPAP regimens were developed. Bi-level CPAP involves delivering a higher therapeutic CPAP during inhalation and a lower therapeutic CPAP during exhalation. The higher therapeutic CPAP level is commonly known as inspiratory positive airway pressure or “EPAP.” The lower therapeutic CPAP level is commonly known as expiratory positive airway pressure or, “EPAP.” Since the EPAP is lower than the IPAP, the patient needs to do less work during exhalation to exhale and thus experiences less discomfort, compared to the mono-level CPAP regimen.

However, the development of bi-level CPAP significantly increased the sophistication of CPAP devices because the devices must accurately determine when the patient is inhaling and exhaling and to properly coordinate the IPAP and EPAP levels thereto. One approach is to determine the instantaneous and average flow rates of air being delivered to the patient and then to compare the two to determine whether a patient was inhaling or exhaling. If the instantaneous flow rate is greater than the average flow rate, the patient is deemed to be inhaling. If the instantaneous flow rate is less than the average flow rate, the patient is deemed to be exhaling.

While CPAP has been useful in the treatment of obstructive sleep apnea and other respiratory related illnesses such as, for example, chronic obstructive pulmonary disease and neuro-muscular disorders affecting the muscles and tissues of breathing, it is highly desirable to provide additional ways of delivering a therapeutic breathing gas to a patient.

SUMMARY

In one aspect, a method of providing a breathing gas is provided. In one embodiment, the method includes: a) sensing a sensed parameter associated with delivery of the breathing gas, b) changing a control parameter associated with a flow/pressure control element in response to a difference between the sensed parameter and a first predetermined sensed parameter value during a first portion of a current breathing cycle, c) determining a transition from the first portion to a second portion of the current breathing cycle based at least in part on the changing control parameter, d) changing the control parameter to cause a first change in the sensed parameter during the second portion of the current breathing cycle based at least in part on the determined transition, and e) changing the control parameter to cause a second change in the sensed parameter during a third portion of the current breathing cycle based at least in part on the first predetermined sensed parameter value.

BRIEF DESCRIPTION OF THE DRAWINGS

In the accompanying drawings which are incorporated in and constitute a part of the specification, embodiments of the invention are illustrated, which, together with a general description of the invention given above, and the detailed description given below, serve to example the principles of this invention.

FIG. 1 is a functional block diagram illustrating one embodiment of a system for delivering a breathing gas.

FIG. 2 is a flowchart illustrating one embodiment of a control process for the system.

FIG. 3 is a graph illustrating a valve step position and mask pressure over time for one embodiment of the system.

FIG. 4 is a graph illustrating a valve step position and mask pressure over time for another embodiment of the system.

FIG. 5 is a graph illustrating a valve step position and mask pressure over time for yet another embodiment of the system.

FIG. 6 is another embodiment of a system for delivering a breathing gas.

FIGS. 7A-7C illustrate another embodiment of a control process for the system.

FIGS. 8A-8C illustrate a lung flow, valve step position, control pressure and sensed pressure over time for the embodiment of the system illustrated in FIG. 6.

FIG. 9 is yet another embodiment of a system for delivering a breathing gas.

DETAILED DESCRIPTION OF ILLUSTRATED EMBODIMENTS

Prior to discussing the various embodiments, a review of the definitions of some exemplary terms used throughout the disclosure is appropriate. Both singular and plural forms of all terms fall within each meaning:

“Logic,” as used herein, includes but is not limited to hardware, firmware, software and/or combinations of each to perform a function(s) or an action(s), and/or to cause a function or action from another component. For example, based on a desired application or need, logic may include a software controlled microprocessor, discrete logic such as an application specific integrated circuit (ASIC), or other programmed logic device. Logic may also be fully embodied as software.

“Software,” as used herein, includes but is not limited to one or more computer readable and/or executable instructions that cause a computer or other electronic device to perform functions, actions, and/or behave in a desired manner. The instructions may be embodied in various forms such as routines, algorithms, modules or programs including separate applications or code from dynamically linked libraries. Software may also be implemented in various forms such as a stand-alone program, a function call, a servlet, an applet, instructions stored in a memory, part of an operating system or other type of executable instructions. It will be appreciated by one of ordinary skill in the art that the form of software is dependent on, for example, requirements of a desired application, the environment it runs on, and/or the desires of a designer/programmer or the like.

“Breathing state,” as used herein, includes any state or combination of states where air is drawn into the lungs and/or expelled from the lungs. For example, a first breathing state may be associated with drawing air into the lungs and a second breathing state may be associated with expelling air from the lungs. Additionally, a breathing state can have one or more sub-states. For example, the start of inhalation can be a breathing state and the end of inhalation can be another breathing state, with the range therebetween defining one or more other breathing states. Similarly, the start and end of exhalation, and the range there between, can also be defined by one or more breathing states.

The systems and methods described herein are particularly suited for assisting the respiration of spontaneously breathing patients, though they may also be applied to other respiratory regimens including, for example, acute and homecare ventilation. Referring now to FIG. 1, block diagram 100 illustrating one embodiment of a system is shown. The system has a controller 102 with control logic 104, a blower 106, a variable position poppet valve 108 with a bi-directional stepper motor and a pressure sensor 112. A flow path 110 provides a path for a flow of breathable gas from the valve 108 to a patient interface 114. Patent interface 114 can be any nasal mask, face mask, cannula, or similar device. Pressure sensor 112 senses a parameter of the breathing gas such as the pressure in flow path 110, which is associated with and indicative of the pressure in the patient interface 114. The controller 102 is preferably processor-based and can include various input/output circuitry including analog-to-digital (A/D) inputs and digital-to-analog (D/A) outputs. The controller 102 sends valve step position data 116 to the valve 108 to control its position and the sensor 112 sends pressure data 118 back to the controller 102 to be read.

The valve step position is preferably defined by the stepper motor specification and can include step positions that are less than 1 step or a whole step. Generally, the valve step position can range from any negative number to any positive number. One preferable valve step position range includes 0 to 100, where step position 0 is associated with a fully closed valve position and step 100 is associated with a fully open valve position. Therefore, for a given blower speed and valve configuration, each valve step position can be determined to be equivalent to an approximate pressure change (e.g., a valve step position equals a pressure change of 0.2 cm H₂O.)

While the embodiment of FIG. 1 has been described with reference to a flow/pressure control element in the form of a variable position valve 108 and a sensor element in the form of a pressure sensor 112, the flow/pressure control and sensor elements can include other types of devices. For example, the flow/pressure control element can be a variable speed blower, a variable speed blower in combination with a linear valve or solenoid valve, a variable speed blower in combination with a stepper motor controlled variable position valve, a variable speed blower in combination with a linear valve or solenoid valve and a stepper motor controlled variable position valve, or any other suitable combination of these components. The sensor element can include a flow sensor, temperature sensor, infra-red light emitter/sensor, motor current sensor, or motor speed sensor alone or in combination with the pressure sensor. The data generated from these sensor(s) is fed back to the controller 102 for processing.

Referring now to FIG. 2, the operation of the system will be described with reference to the flowchart illustrated therein. In the flowcharts hereinafter, the rectangular elements denote processing blocks and represent software instructions or groups of instructions. The quadrilateral elements denote data input/output processing blocks and represent software instructions or groups of instructions directed to the input or reading of data or the output or sending of data. The flow diagrams shown and described herein do not depict syntax of any particular programming language. Rather, the flow diagrams illustrate the functional information one skilled in the art may use to fabricate circuits or to generate software to perform the processing of the system. It should be noted that many routine program elements, such as initialization of loops and variables and the use of temporary variables are not shown.

In block 200, the controller 102 opens the valve 108 and sets the blower 106 to a speed that produces a predetermined pressure at its output. This predetermined pressure is generally set to a medically prescribed positive pressure for a patient plus an additional pressure of, for example, 5 cm H₂O, via a pressure-to-speed look-up table that is stored in the memory of the controller 102. While an additional pressure of 5 cm H₂O has been described, other pressures including no additional pressure can be chosen as well. The medically prescribed positive pressure is typically a pressure that is above the ambient pressure. For example, the prescribed pressure may range from 4 to 20 cm H₂O. Once the blower 106 is set to provide the set pressure, it is rarely, if ever, changed during active operation of the device. Instead, the controller 102 uses the step position of the valve 108 to modulate the output pressure through both a closed loop and an open loop control. The closed loop control is a function of sensed pressure and the open loop control is a function of time. Together, these control loops direct the operation of the system through the breathing cycle of a patient. It should also be noted that the closed loop and open loop control can also be based on other parameters such as, for example, instantaneous and average flow rates, temperature of the gases in the patient interface, and/or composition of the gases (e.g. CO₂) in the patient interface.

In block 202, pressure is read and stored for subsequent processing. In block 204, an average valve step position is determined and maintained or updated. In step 206, the controller 102 determines if a pressure drop has been sensed. This is preferably accomplished by comparing the presently sensed pressure with the immediately preceding sensed pressure. If the presently sensed pressure is less, then a pressure drop has occurred and the flow proceeds to block 208. In block 208, the controller 102 increments the valve step position to compensate for the pressure drop. Incrementing the valve step position has the effect of increasing the flow and pressure of the breathing gas delivered from the valve's output. The step position is changed iteratively until the error or difference between the sensed pressures is minimized. During this phase of operation, the controller 102 seeks to maintain a constant pressure in the flow path 112 until patient exhalation is sensed.

In block 210, the difference between the instantaneous and average valve position is integrated over time and stored in memory. The summation of six such integrations is used to determine the start of an inhalation breathing state by determining if the summation is greater than a start of inhalation threshold (blocks 212 and 214). If the summation is greater than the threshold, the start of the inhalation breathing state has occurred and a timer begins the measurement of the inhalation breathing state in block 216. This measurement continues until a peak valve step position has been found in block 218. The peak valve step position is determined by comparing the previous valve step position to the present valve step position and saving in memory the step position that is greater as the peak valve step position. If the peak valve step position remains unchanged for some time period (e.g., 80 ms), then the controller 102 assumes that the peak valve step position has occurred for this inhalation phase and stops the inhalation breathing state time measurement in block 220. The peak valve step position is a threshold indicative of the imminent end of the inhalation breathing state.

In block 222, the controller 102 tests to determine if a pressure increase has occurred by reading the pressure signal. If a pressure increase has occurred after a peak valve step position has been found, then the inhalation breathing state is imminently ending. Block 224 decrements the valve position to lower the flow and pressure provided so as to maintain a constant pressure in the air flow path. This is once again accomplished by an iterative process by which the error between the presently sensed pressure and the previously sensed pressure is minimized. Block 226 tests to determine if the inhalation breathing state has ended by comparing two variables, VAR₁ and VAR₂. These variables are defined as follows: VAR ₁=(Inst. Step Position)−(Avg. Step Position) VAR ₂=[(Peak Step Position)−(Avg. Step Position)]*Threshold The variable “Threshold” is a percentage value such as, for example, 85% or 0.85, though other percentage values can also be chosen. If VAR₁≦VAR₂, then the inhalation breathing state has ended and the exhalation breathing state has or is about to commence.

Block 228 decrements the valve step position according to an exhalation unloading function that lowers the pressure delivered over time so that the pressure initially delivered during the exhalation breathing state is less than the pressure delivered during the inhalation breathing state. The pressure is dropped until a predetermined minimum pressure is provided, which can include ambient pressure. This lower pressure is maintained in block 230 for an exhalation time period that is, for example, 2.5 times the measured inhalation state time period. Multiples other than 2.5 can also be selected after the expiration of this time period, the pressure signal is read in block 232 and the valve step position is incremented according to a pressure loading function. The pressure loading function reads the present pressure and returns over time the output pressure to the medically prescribed positive pressure, where the system once again looks for a start of inhalation breathing state.

In this manner, a positive pressure is provided during the inhalation phase of a breathing cycle to assist the patient in inhalation and a lower pressure is provided during the exhalation phase of a breathing cycle to allow the patient to exhale against a lower pressure. Such a system provides a level of comfort over other types of Continuous Positive Airway Pressure delivery in that the patient is not required to exhale against the same pressure used during inhalation for any appreciable period of time.

Referring now to FIG. 3, a chart illustrating a valve step position curve 300 and an output pressure curve 302 as a function of time is shown. The two curves have been overlaid to more clearly illustrate the synchronization between pressure and valve step position. The operation description will now be reviewed with reference to the curves of FIG. 3.

Prior to state 0, the system is in the closed loop control and is sensing the pressure at its output via its pressure sensor. Since there is very little pressure change prior to state 0, the system is maintaining a constant valve step position, which results in a constant output pressure (preferably, the medically prescribed positive pressure). This typically occurs at the end of patient exhalation where there is very little pressure change in the system caused by the patient.

When the patient begins to inhale, a pressure drop is sensed by the pressure sensor 112. This pressure drop causes the system to further open the valve 108 in a step-wise fashion to compensate for the drop in pressure caused by patient inhalation. During such inhalation, the system attempts to maintain an output pressure substantially equivalent to the medically prescribed positive pressure. Each step position of the valve is equivalent to a known approximate pressure change (e.g., 0.2 cm H₂O). The difference between the sensed pressure and the set pressure (i.e., the medically prescribed positive pressure) generates an error value, which the system attempts to minimize by appropriately adjusting the valve step position, which appropriately adjusts the pressure delivered.

State 0 occurs when the valve step position is increased and triggers a fixed time period which leads to State 1. During this fixed time period, the difference between the instantaneous valve step position and the average valve step position is integrated over 6 time intervals. FIG. 3 shows only 3 intervals for the sake of clarity. If the summation of these 6 integrations is greater than a threshold value, then a patient inhalation is assumed and an inhalation timer is started that measures the time of inhalation.

This inhalation time measurement is terminated when a peak valve step position has been reached in State 2. The peak valve step position is determined by comparing the previous valve step position to the present valve step position and saving in memory the step position that is greater as the peak valve step position. If the peak valve step position remains unchanged for some time period (e.g., 80 ms), then the system assumes that the peak valve step position has occurred for this inhalation phase.

After State 2, the system looks for an exhalation trigger. This is accomplished by comparing two variables, both of which are based on valve step position. The equations have defined above as VAR₁ and VAR₂. If VAR₁≦VAR₂ then the trigger exists and the system moves to State 3.

In State 3, the system closes the variable position valve 108 so as to provide a lower pressure at its output. The valve 108 can be quickly and linearly closed (e.g., with a fixed slope of 3 ms/step) by reducing the valve step position to, for example, position 0 (i.e., closed) or some other position. During a significant portion of exhalation, the system now provides a lower pressure than that used during inhalation. This makes it easier for the patient to exhale.

From State 3 to State 4, the system is in open-loop control and does not vary the valve step position based on pressure or any other parameter. The valve remains in its step position during this fixed time period. As described above, the time period can be 2.5 times the previously determined inhalation time (i.e., time from State 1 to State 2). This is the pressure unloading portion of the system operation.

At State 4, the exhalation time period expires and the system gradually applies pressure to its output until the pressure once again reaches the medically prescribed positive pressure. The system is now re-loading the pressure at its output. This is accomplished by sensing the pressure at State 4, which is caused primarily by patient exhalation, and quickly changing the valve step position to meet that pressure. Hence, this phase of exhalation starts with a pressure that is dependent on the patient exhalation pressure. From State 4 to State 5, the system gradually changes the valve step position in a linear fashion (e.g., with a fixed slope of 40 ms/step) thereby gradually opening the valve until the output pressure once again reaches the higher medically prescribed positive pressure. The system is now ready for the next patient inhalation where the process repeats.

FIG. 4 illustrates an embodiment of the invention directed to exhalation trigger-based control. In this regard, the control is similar to that explained above, except that no inhalation trigger is provided. In particular, a breath cycle time is measured as a function of the peak valve step position. The time between two peak valve step positions (State 2) is a measure of the breathing cycle time. The exhalation trigger at State 3, unloading portion from States 3 to 4, and loading portion from States 4 to 5 are the same as described above in connection with FIG. 3. The unloading portion (States 3 to 4) and loading portion (States 4 to 5) are defined to be percentages of the breath cycle time of the previous breath cycle(s). These percentages can range broadly, but are typically chosen so that the unloading and loading portion together are from about 50% to about 85% of the breath cycle time. The advantage of this embodiment is that it requires less processing by the controller 102.

Illustrated in FIG. 5 is an embodiment of the present invention that uses the instantaneous and average valve step position to detect the breathing state of a patient and coordinates the pressure delivered according to the detected states. In this embodiment, the system is in closed-loop control mode where it is always sensing the pressure and adjusting its output based thereon. More specifically, as the patient breathes, an average valve step position is established by virtue of the valve step position increasing to raise the pressure delivered for inhalation and decreasing to reduce the pressure delivered for exhalation based on the pressure fed back to the controller 102. By comparing the instantaneous valve step position to the average valve step position, the breathing state of the patient can be detected. If the instantaneous valve step position is above the average valve step position, the patient is inhaling. If the instantaneous valve step position is below the average valve step position, the patient is exhaling. To reduce premature or erratic triggering, the average valve step position can be offset above its true value for inhalation detection and below its true value for exhalation detection.

In FIG. 5, reference 502 indicates the instantaneous valve step position crossing the average valve step position with a positive slope. This indicates the patient is inhaling because the valve is increasing its step position to compensate for the drop in pressure caused by the patient inhalation. Reference 504 indicates the instantaneous valve step position crossing the average valve step position with a negative slope. This indicates the patient is exhaling because the valve is decreasing its step position to compensate for the increase in pressure caused by patient exhalation. According to such detection, an IPAP level can be applied during inhalation and an EPAP level can be applied during exhalation. Reference 506 indicates the next inhalation detection.

Illustrated in FIG. 6 is another embodiment of the invention in the form of system 600. System 600 is similar to system 100 (FIG. 1) except that the variable position valve 108 is in a venting position with respect to flow path 110. Also, controller 102 includes control logic 602. In this regard, breathing gas output by blower 106 travels within flow path 110 to the patient interface 114. Variable position valve 108 is positioned so that it can divert breathing gas from flow path 110 and patient interface 114. The step position of valve 108 is controlled by logic 602. While the embodiment of FIG. 6 has been described with reference to a flow/pressure control element in the form of a variable position valve 108 and a sensor element in the form of a pressure sensor 112, the flow/pressure control and sensor elements can include other types of devices. For example, the flow/pressure control element can be a variable speed blower, a variable speed blower in combination with a linear valve or solenoid valve, a variable speed blower in combination with a stepper motor controlled variable position valve, a variable speed blower in combination with a linear valve or solenoid valve and a stepper motor controlled variable position valve, or any other suitable combination of these components. The sensor element can include a flow sensor, temperature sensor, infra-red light emitter/sensor, motor current sensor, or motor speed sensor alone or in combination with the pressure sensor. The data generated from these sensor(s) is fed back to the controller 102 for processing.

FIGS. 7A-C illustrate flowcharts directed to one embodiment of control logic 602. In block 700, the controller 102 closes the valve 108 and sets the blower 106 to a speed that produces a predetermined pressure at its output. This predetermined pressure is generally set to a medically prescribed positive pressure for a patient, plus an additional pressure component, via a pressure-to-speed look-up table that is stored in the memory of the controller 102. The additional pressure component can be a percentage of the set pressure or some other value. The additional pressure component is provided so that the medically prescribed positive pressure can be delivered under most if not all patient demand scenarios. The medically prescribed positive pressure is typically a pressure that is above the ambient pressure. For example, the prescribed pressure can range from 4 to 20 cm H₂O. Once the blower 106 is set to provide the required pressure, it is rarely, if ever, changed during active operation of the device. Instead, the controller 102 uses the step position of the valve 108 to modulate the output pressure.

In block 702, the pressure is read and stored. In block 704, the logic determines the median valve step position, breath rate (FIG. 7C), and upper and lower breathing rate thresholds. In one embodiment, the median valve step position and upper and lower breathing rate thresholds may be determined as follows: Median Valve Step=(Present*0.0003)+(Previous*0.9997) Breathing Rate Upper Threshold=Median+(Median*0.1) Breathing Rate Lower Threshold=Median−(Median*0.1) Wherein “Present” means present valve step position, “Previous” means previous median valve step position, and “Median” means median valve step position. The logic may initially cycle through several breathing states in determining the above values.

Once the upper and lower breathing rate thresholds are determined, the valve step position is monitored for breathing rate determination. Referring to FIG. 7C, the slope of the valve step change is determined in block 742. This may be accomplished by comparing the present and one or more previous valve step positions over time. If the slope of the valve step position is negative in block 744, the logic advances to block 746. Otherwise, the logic loops back to blocks 742 or 704 to continue processing until the next valve step change. In block 746, the logic tests to determine if the valve step position has fallen below the upper breathing rate (BR) threshold (see FIG. 8B). If so, the logic advances to block 748 where it tests to determine if the valve step position has fallen below the lower breathing rate (BR) threshold (see FIG. 8B). If so, the logic advances to block 750 where the end time is recorded for the current breath and the start time is recorded for the next breath. Based on the start and end time of each breath, a breath rate (e.g., breaths/minute) can be calculated and stored for subsequent use.

Referring back to FIG. 7A, a pressure error is generated by comparing the set pressure to the pressure read by the pressure sensor 112 in block 706. In block 708, the pressure error is used to generate a valve step error, which can be according to the following: V _(error)=(P _(error) *P)+(D _(error) *D)+(S _(error) *S) Where “V_(error)” is the valve step error, “P_(error)” is the pressure error, “D_(error)” is the pressure error difference between the present and the previous pressure error calculation, “S_(error)” is the summation of the pressure errors, and “P,” “D,” and “S” are constants. The “V_(error)” equation generally defines a Proportional Integral Derivative (hereinafter PID) servo controller. Generally, the constants of “P,” “D,” and “S” are selected after empirical study of the behavior of the system. Additionally, theoretical values can also be selected for the constants. This PID servo control is active substantially throughout the logic's operation, though intermittent operation may also be acceptable during portions of the patient's breathing states. As will be described, the logic utilizes various pressure settings for the PID controller to generate the proper pressure outputs given the effects of the patient's breathing characteristics on the system's performance.

Block 710 tests to determine whether the valve step error is greater than or equal to zero. If so, the logic advances to block 712 where the valve step position is incremented one or more steps so as to try to reduce the error. Otherwise, the logic advances to block 714 where the valve step position is decremented one or more steps to try and reduce the error. It should be noted that the valve step position employed by the logic may or may not equal one step of the stepper motor that controls the movement of the valve. For example, one valve step may be equal to a half step movement of the valve's stepper motor.

After either steps 712 or 714, the logic advances to block 716 where the valve step is monitored for a peak valve step position. In one embodiment, the logic determines the inhalation threshold according to the following: Inhalation Threshold=[(Peak−Median)*0.5]+Median Wherein “Peak” is the peak valve step position from one or more previous breath cycles, “Median” is the median valve step position, and 0.5 is an exemplary scaling factor. Other scaling factor values may be used in other embodiments. After the present valve step position exceeds the inhalation threshold, the logic begins determining the peak valve step position. The peak valve step position is determined by comparing the present valve step position to the previous valve step position and choosing the greater value.

In block 718, the logic determines the unload threshold according to the following: Unload Threshold=[(Peak−Median)]*T]+Median

Wherein “Peak” is the peak valve step position from one or more previous breath cycles, “Median” is the median valve step position, and “T” is a percent unloading trigger value that is determined from a look-up table based on the determined breaths per minute. One example of a breaths per minute based look-up table is shown below in Table 1: TABLE 1 Breaths per minute T (% unloading) 0 −0.15 1 −0.15 2 −0.15 3 −0.15 4 −0.15 5 −0.15 6 −0.15 7 −0.10 8 −0.10 9 −0.10 10 0.00 11 0.00 12 0.10 13 0.10 14 0.12 15 0.15 16 0.17 17 0.20 18 0.23 19 0.25 20 0.26 21 0.28 22 0.30 23 0.32 24 0.34 25 0.37 26 0.37 27 0.37 28 0.37 29 0.37 30 0.37

In Table 1, each “Breaths per minute” value has a corresponding “T (% unloading)” value associated therewith in the form of values “X,” “Y,” and “Z”, which are typically equal to or less than 1. The “T (% unloading)” values can be the same or different for any given “Breaths per minute” value and determine how soon the unloading cycle starts with respect to the median valve step position. For example, a “T (% unloading)” value closer to 1 would raise the unload threshold to be higher away from the median valve step position, thus causing the triggering of a pressure reduction sooner with respect to valve step position. A “T (% unloading)” valve step closer to zero (0) would lower the unload threshold bringing it closer to the median valve step position, thus causing the triggering of a pressure reduction later with respect to the valve step position. Generally, the larger the “Breaths per minute” valve, the larger the “T (% unloading)” value. It should also be noted that one or more “Breaths per minute” values may have the same or different “T (% unloading)” values associated therewith.

In block 720, the logic tests to determine whether the valve step position has fallen below the unload threshold. If not, the logic loops back to block 702 to continue the active PID servo control of the valve step position. If so, the logic advances to block 722. In block 722, the logic determines the unload pressure and the pressure decrease control waveform and associated pressure settings. Also, a decrease timer is set. In one embodiment, the unload pressure is determined as follows: Unload Pressure=P _(set) −[P _(set)*((ΔV*V _(scale))/K)*S]

where “P_(set)” is the medically described positive pressure, “ΔV” is the change in valve step position defined by (Peak−Median), “V_(scale)” is a value selected from Table 2 (below) and is based on P_(set), “K” is a constant (e.g., in the range of 2000-4000, such as 3000) and “S” is a constant in the range of 1-3 but can be smaller than 1 and larger than 3. If the logic desires to simply maintain the pressure due to certain operating conditions, the “S” constant may be set to 0 so that the unload pressure is equal to the prescribed pressure. The value of “V_(scale”) may be described pressure (P_(set)), for example, as shown in Table 2. TABLE 2 P_(set) V_(scale) 0 0 1 0 2 0 3 0 4 0.28 5 0.28 6 0.25 7 0.25 8 0.25 9 0.23 10 0.23 11 0.22 12 0.22 13 0.18 14 0.15 15 0.15 16 0.14 17 0.14 18 0.12 19 0.12 20 0.12

In Table 2, the P_(set) values range from 0 to 20 and represent a range of medically prescribed positive pressure values. Each P_(set) value has a corresponding V_(scale) value (“A,” “B,” “C,” etc,) associated with it that can be determined either by prior empirical or theoretical modeling of the system. For example, if system 600 is configured to work with a wide range of patient interfaces 114, each type of patient interface 114 may cause slight differences in the performance of system 600 at a give pressure of P_(set). Hence, one may choose to determine the V_(scale) values after understanding the impact of various patient interfaces on the system performance. Generally, the “V_(scale)” values may range from 0 to 0.28 as shown in Table 2, but other embodiments may go beyond this range. Moreover, certain safeguards may be employed to not allow the unload pressure to fall beyond certain levels. For example, if the pressure P_(set) is 4 cm H₂O, then the logic may not allow any pressure unloading due to the set pressure already being a very low medically prescribed positive pressure. However, in most circumstances, the Unload Pressure determination results in a value that is less than the medically prescribed positive pressure.

Further, in block 722, the logic determines, for example, 195 pressure settings that define the control waveform for the pressure setting reduction down to the unload pressure setting. These pressure settings are used by the active PID servo control. In one embodiment, the 195 pressure settings are governed by a pressure decrease timer (e.g., 780 ms). In one embodiment, the control waveform for the unload period can be defined by a ramp down portion and a hold portion. The ramp down portion may include 10 pressure settings that sequentially reduce the pressure setting from the therapeutic pressure setting to the unload pressure setting in, for example, 40 ms comprised of, for example, ten 4 ms increments. The hold portion maintains the pressure setting at the unload pressure setting over, for example, 740 ms comprised of, for example, 185 four ms periods. It should be noted that other values may be chosen and the described values are merely meant to illustrate one embodiment of the invention. It should also be noted that the sensed pressure can be used to re-determine or adjust the control waveform during the ramping and/or hold portions of the unload period.

In block 724, the valve step position is adjusted in an attempt to have the sensed pressure follow the pressure settings of the determined control waveform for the pressure setting reduction down to the unload pressure setting. In other words, block 724 uses the same logic as blocks 706-714 because the active PID servo control is used to correct the valve step position as the pressure settings of the control waveform are used for the desired pressure setting. For example, each of the pressure settings defines a “Set Pressure” that is compared to the sensed pressure to generate a pressure error that is used by the active PD servo control.

In block 726, the logic tests to determine whether the pressure decrease timer (e.g., 780 ms) has expired. If so, the logic advances to block 732. If not, the logic advances to block 728 where it determines whether the unload pressure setting in the control waveform has been reached. If the pressure decrease timer has expired, the logic advances to block 732 where it prepares for pressure reloading back up to the medically prescribed positive pressure. If the unload pressure setting has not been reached in block 728, the logic loops back to block 724 and continues the active PID servo control of the valve step position according to the pressure settings of the control waveform. If the unload pressure setting has been reached in block 728, the logic advances to block 730 where the unload pressure setting is maintained through the active PID servo control of the valve step position until the pressure decrease timer expires.

After the pressure decrease timer has expired, the logic executes block 732 where it determines the pressure increase control waveform and associated pressure settings. Also, a pressure increase timer is set. In one embodiment, the logic determines, for example, 100 pressure settings that define the control waveform for the pressure increase up to the medically prescribed positive pressure (therapeutic pressure). This waveform is based on the pressure setting at the expiration of the decrease timer and the medically prescribed positive pressure. In one embodiment, the pressure increase timer may be set to 400 ms. In one embodiment, the control waveform for the load period can be defined by a ramp up portion. The ramp up portion may include 100 pressure settings that sequentially increase the pressure setting from the unload pressure setting to the therapeutic pressure setting in, for example, 400 ms comprised of, for example, one hundred 4 ms increments. In another embodiment, control waveform for the load period can be defined by a ramp up portion and a hold portion in similar fashion to the control waveform for the unload period described above. Once again, it should be noted that other values may be chosen and the described values are merely meant to illustrate one embodiment of the invention. It should also be noted that the sensed pressure can be used to re-determine or adjust the control waveform during the ramping and/or hold portions of the load period.

In block 734, the valve step position is adjusted in an attempt to have the sensed pressure follow the pressure settings of the determined control waveform for the pressure setting increase up to the medically prescribed positive pressure setting. In other words, block 734 uses the same logic as blocks 706-714 and 724 because the active PID servo control is used to correct the valve step position as the pressure settings of the control waveform are used for the desired pressure setting.

In block 736, the logic tests to determine whether the pressure increase timer (e.g., 400 ms) has expired. If so, the logic advances to block 700 wherein the pressure is set to the medically prescribed positive pressure. If not, the logic advances to block 738 where it determines whether the medically prescribed positive airway pressure setting (e.g., therapeutic pressure setting) in the control waveform has been reached. If the medically prescribed positive pressure setting has not been reached in block 738, the logic loops back to block 734 and continues the active PID servo control of the valve step position according to the pressure settings of the control waveform. If the therapeutic pressure has been reached in block 738, the logic advances to block 740 where the medically prescribed positive pressure setting is maintained through the active PID servo control of the valve step position until the pressure increase timer expires. Once the pressure increase timer expires, the logic loops back to block 700 and the process repeats for the next breathing cycle.

Referring now to FIGS. 8A-8C, the lung flow, valve step position, control pressure and sensed pressure over time for the embodiment illustrated in FIG. 6 are shown. FIG. 8A illustrates the flow of breathing gas into and out of the lung over time. FIG. 8B illustrates the valve step position over time, along with the median valve step, upper and lower breathing rate (BR) thresholds, inhalation threshold, and unload threshold. The use of these values and thresholds have been described with reference to the logic of FIGS. 7A-7C. FIG. 8C illustrates the control pressure waveform that determines the pressure settings and the sensed pressure by the system. During inhalation, the PID servo controller tries to maintain the set pressure, which is the medically prescribed positive pressure for the patient. This causes the valve step position to change due to patient demand, which increases to a peak valve step position and then decreases. During this phase, the peak valve step position is monitored and the median valve step position is calculated. When the valve step position falls below the unload threshold, the unload pressure is determined along with the pressure decrease control waveform and associated pressure settings that are used by the active PID servo control to reduce the pressure down to the unload pressure. A pressure decrease timer is also started. If the sensed pressure reaches the unload pressure prior to expiration of the decrease timer due to the patient's breathing characteristics, the unload pressure is maintained by the active PID servo controller until the decrease timer expires. Once the decrease timer expires, independent of whether the unload pressure has been reached, a pressure increase control waveform and associated pressure settings are determined based on the sensed pressure at the expiration of the decrease timer and the medically prescribed positive pressure. The pressure increase control waveform is used by the active PID servo controller to raise the pressure back up to the set therapeutic pressure during the increase time period. Because of the active PID servo controller and the effect of the patient's breathing characteristics, the pressure may rise to the required therapeutic level prior to expiration of the increase timer.

Illustrated in FIG. 9 is yet another embodiment of the invention in the form of system 700. System 700 is similar to system 600 (FIG. 6). FIG. 9 depicts an ambient input 702 and a filter 704 that provide ambient air to an input associated with the blower 106. The ambient input 702 and filter 704 are implied in the previously described systems of FIGS. 1 and 6 and corresponding blower operations. System 700 also includes a non-ambient input 704 which receives breathing gas diverted from the flow path 110 by the variable position valve 108. This arrangement is different than in FIG. 6, where the variable position valve 108 diverts breathing gas, but does not necessarily direct the diverted breathing gas back to the blower 106. Otherwise, the system 700 operates in the same manner as system 600 which is described above in references to FIGS. 6, 7A-C, and 8A-C. Moreover, options, variations, and alternatives described above in regard to system 600 are equally suitable for system 700, except where they conflict with diverting the breathing gas to the non-ambient input 704. In other embodiment, one or more additional filters between the filter 704 and the blower 106 may be provided.

While the present invention has been illustrated by the description of embodiments thereof, and while the embodiments have been described in considerable detail, it is not the intention of this specification to restrict or in any way limit the scope of the appended claims to such detail. Additional advantages and modifications will readily appear to those skilled in the art. For example, valve step position can be changed according to non-linear function as an alternate, addition or in combination with linear functions. Alternate or additional parameters of the flow gas can be sensed including flow rates through the use of flow sensors to modulate valve step position. More specifically, the direction of flow and/or the change in flow rates (e.g., instantaneous and average) can also be used. Therefore, the invention, in its broader aspects, is not limited to the specific details, the representative apparatus, and illustrative examples shown and described. Accordingly, departures may be made from such details without departing from the spirit or scope of the applicant's general inventive concept. 

1. A method of providing a breathing gas comprising: a) sensing a sensed parameter associated with delivery of the breathing gas; b) changing a control parameter associated with a flow/pressure control element in response to a difference between the sensed parameter and a first predetermined sensed parameter value during an inhalation state of a breathing cycle; c) determining a transition from the inhalation state to an exhalation state of the breathing cycle based at least in part on the changing control parameter; d) changing the control parameter to cause a first change in the sensed parameter during an unload portion of the exhalation state based at least in part on the determined transition; and e) changing the control parameter to cause a second change in the sensed parameter during a load portion of the exhalation state based at least in part on the first predetermined sensed parameter value.
 2. The method of claim 1 wherein the sensed parameter is breathing gas pressure, breathing gas flow, breathing gas temperature, or breathing gas composition.
 3. The method of claim 1 wherein the flow/pressure control element includes a variable position valve and the control parameter includes a valve step position.
 4. The method of claim 1 wherein the flow/pressure control element includes a variable speed blower and the control parameter includes a blower speed.
 5. The method of claim 1 wherein the determining in c) comprises determining an average valve step position.
 6. The method of claim 1 wherein the determining in c) comprises identifying an instantaneous valve step position.
 7. The method of claim 1 wherein the determining in c) comprises determining a peak valve step position.
 8. The method of claim 7 wherein determining the peak valve step position comprises identifying a highest valve step position between a present valve step position and one or more previous valve step positions and if the highest valve step position does not change for a predetermined peak valve step time, identifying the highest valve step position as the peak valve step position.
 9. The method of claim 1 wherein the determining in c) is based at least in part on a predetermined percentage threshold value.
 10. The method of claim 1 wherein the changing in d) comprises determining an inhale time associated with the inhalation state.
 11. The method of claim 10 wherein the changing in d) comprises determining an exhale time associated with the unload portion of the exhalation state and based at least in part on the determined inhale time.
 12. The method of claim 11 wherein the duration of the unload portion of the exhalation state is based at least in part on the exhale time.
 13. The method of claim 11 wherein the exhale time is based at least in part on a predetermined exhale time factor.
 14. The method of claim 1 wherein the changing in d) is based at least in part on an unloading function.
 15. The method of claim 1 wherein the changing in d) is based at least in part on a second predetermined sensed parameter value.
 16. The method of claim 1 wherein the changing in d) comprises determining a peak valve step position.
 17. The method of claim 1 wherein the changing in e) is based at least in part on a loading function.
 18. A method of providing a breathing gas comprising: a) sensing a breathing gas pressure associated with delivery of the breathing gas; b) detecting a start of an inhalation state of a breathing cycle; c) changing a valve step position associated with a variable position valve in response to a difference between the sensed breathing gas pressure and a first predetermined breathing gas pressure value during the inhalation state; d) determining a transition from the inhalation state to an exhalation state of the breathing cycle based at least in part on the changing valve step position; e) changing the valve step position to cause a first change in the breathing gas pressure during an unload portion of the exhalation state based at least in part on the determined transition; and f) changing the valve step position to cause a second change in the breathing gas pressure during a load portion of the exhalation state based at least in part on the first predetermined breathing gas pressure value.
 19. The method of claim 18 wherein the detecting in b) comprises: g) determining an average valve step position; h) integrating a difference between an instantaneous valve step position and the average valve step position over a predetermined integration time to produce a summation; and i) identifying the start of the inhalation state after the summation is greater than a predetermined start of inhalation threshold value.
 20. The method of claim 18 wherein the determining in d) comprises: g) calculating a first transition variable based at least in part on an instantaneous valve step position; h) calculating a second transition variable based at least in part on a peak valve step position; and i) identifying the transition from the inhalation state to the exhalation state after the first transition variable is less than or equal to the second transition variable.
 21. The method of claim 20 wherein the calculating in g) comprises: j) determining an average valve step position; k) identifying the instantaneous valve step position; and l) calculating the first transition variable by subtracting the average valve step position from the instantaneous valve step position.
 22. The method of claim 20 wherein the calculating in h) comprises: j) determining an average valve step position; k) determining a peak valve step position for the inhalation state; and l) calculating the second transition variable by multiplying a difference between the peak valve step position and the average valve step position by a predetermined percentage threshold value.
 23. The method of claim 18 wherein the changing in e) comprises: g) determining an inhale time associated with the inhalation state; h) determining an exhale time associated with the unload portion of the exhalation state and based at least in part on the determined inhale time; i) beginning the exhale time after the transition from the inhalation state to the exhalation state; j) decrementing the valve step position according to an unloading function until a second predetermined breathing gas pressure value is achieved; and k) changing the valve step position in response to a difference between the sensed breathing gas pressure and the second predetermined breathing gas pressure value after the second predetermined breathing gas pressure value is achieved and until the exhale time expires.
 24. The method of claim 23 wherein the determining in g) comprises: l) starting an inhalation timer after the start of the inhalation state is detected; m) determining a peak valve step position for the inhalation state; and n) stopping the inhalation timer after the peak valve step position for the inhalation state is determined.
 25. The method of claim 23 wherein the exhale time in h) is a product of a predetermined exhale time factor and the determined inhale time.
 26. The method of claim 18 wherein the changing in f) comprises: g) incrementing the valve step position according to a loading function until the first predetermined breathing gas pressure value is achieved; and h) changing the valve step position in response to a difference between the sensed breathing gas pressure and the first predetermined breathing gas pressure value after the first predetermined breathing gas pressure value is achieved.
 27. A method of providing a breathing gas comprising: a) sensing a breathing gas pressure associated with delivery of the breathing gas; b) determining a breath cycle time associated with at least a portion of a current inhalation state of a current breathing cycle and a portion of a previous breathing cycle; c) changing a valve step position associated with a variable position valve in response to a difference between the sensed breathing gas pressure and a first predetermined breathing gas pressure value during the current inhalation state; d) determining a transition from the current inhalation state to a current exhalation state of the current breathing cycle based at least in part on the changing valve step position; e) changing the valve step position to cause a first change in the breathing gas pressure during an unload portion of the current exhalation state based at least in part on the determined transition; and f) changing the valve step position to cause a second change in the breathing gas pressure during a load portion of the current exhalation state based at least in part on the first predetermined breathing gas pressure value.
 28. The method of claim 27 wherein the determining in b) comprises: g) determining a peak valve step position for a previous inhalation state of the previous breathing cycle; h) starting a breath cycle timer after the peak valve step position for the previous breathing cycle is determined; i) determining a peak valve step position for the current inhalation state; and j) stopping the breath cycle timer after the peak valve step position for the current inhalation state is determined.
 29. The method of claim 27 wherein the determining in d) comprises: g) calculating a first transition variable based at least in part on an instantaneous valve step position; h) calculating a second transition variable based at least in part on a peak valve step position; and i) identifying the transition from the current inhalation state to the current exhalation state after the first transition variable is less than or equal to the second transition variable.
 30. The method of claim 29 wherein the calculating in g) comprises: j) determining an average valve step position; k) identifying the instantaneous valve step position; and l) calculating the first transition variable by subtracting the average valve step position from the instantaneous valve step position.
 31. The method of claim 29 wherein the calculating in h) comprises: j) determining an average valve step position; k) determining a peak valve step position for the current inhalation state; and l) calculating the second transition variable by multiplying a difference between the peak valve step position and the average valve step position by a predetermined percentage threshold value.
 32. The method of claim 27 wherein the changing in e) comprises: g) determining an unloading time associated with the unload portion of the current exhalation state and based at least in part on the determined breath cycle time; h) beginning the unloading time after the transition from the current inhalation state to the current exhalation state; i) decrementing the valve step position according to an unloading function until a second predetermined breathing gas pressure value is achieved; and j) changing the valve step position in response to a difference between the sensed breathing gas pressure and the second predetermined breathing gas pressure value after the second predetermined breathing gas pressure value is achieved and until the unloading time expires.
 33. The method of claim 32 wherein the unloading time in g) is a product of a predetermined unload time factor and the determined breath cycle time.
 34. The method of claim 27 wherein the changing in f) comprises: g) determining a loading time associated with the load portion of the current exhalation state and based at least in part on the determined breath cycle time; h) beginning the loading time after the unload portion of the current exhalation state; i) incrementing the valve step position according to a loading function until the first predetermined breathing gas pressure value is achieved; and j) changing the valve step position in response to a difference between the sensed breathing gas pressure and the first predetermined breathing gas pressure value after the first predetermined breathing gas pressure value is achieved and until the loading time expires.
 35. The method of claim 34 wherein the loading time in g) is a product of a predetermined load time factor and the determined breath cycle time.
 36. A method of providing a breathing gas comprising: a) sensing a sensed parameter associated with delivery of the breathing gas; b) changing a control parameter associated with a flow/pressure control element in response to a difference between the sensed parameter and a first predetermined sensed parameter value during a first portion of a current breathing cycle; c) determining a transition from the first portion to a second portion of the current breathing cycle based at least in part on the changing control parameter; d) changing the control parameter to cause a first change in the sensed parameter during the second portion of the current breathing cycle based at least in part on the determined transition; and e) changing the control parameter to cause a second change in the sensed parameter during a third portion of the current breathing cycle based at least in part on the first predetermined sensed parameter value.
 37. The method of claim 36 wherein the sensed parameter is breathing gas pressure, breathing gas flow, breathing gas temperature, or breathing gas composition.
 38. The method of claim 36 wherein the flow/pressure control element includes a variable position valve and the control parameter includes a valve step position.
 39. The method of claim 36 wherein the flow/pressure control element includes a variable speed blower and the control parameter includes a blower speed.
 40. The method of claim 36 wherein the changing in b) comprises: f) determining a valve step error based at least in part on the sensed parameter and the first predetermined sensed parameter value; and g) changing the control parameter to minimize the valve step error.
 41. The method of claim 40 wherein the sensed parameter is a breathing gas pressure and the determining in f) comprises: f) determining a current pressure error by comparing the first predetermined sensed parameter value to the sensed parameter; g) determining a pressure error difference between the current pressure error and a previous pressure error; h) determining a pressure error sum by adding the current pressure error and the previous pressure error; and i) calculating the valve step error by adding a first product of the current pressure error and a first constant, a second product of the pressure error difference and a second constant, and a third product of the pressure error sum and a third constant.
 42. The method of claim 36 wherein the flow/pressure control element is a variable position valve, the control parameter is a valve step position, and the determining in c) comprises: f) determining the unload threshold value; and g) determining whether the changing valve step position is less than the unload threshold value.
 43. The method of claim 42 wherein the determining in f) comprises: h) determining a breath rate; i) determining a median valve step position; j) determining a peak valve step position for one or more previous breath cycles; k) identifying a predetermined percentage unloading factor associated with the determined breath rate; and l) calculating the unload threshold value based at least in part on the determined median valve step position.
 44. The method of claim 43 wherein the determining in h) comprises: m) recording a start time for a current breath during a previous breathing cycle; n) recording an end time for the current breath during a current breathing cycle; and o) calculating the breath rate based on the start and end times for the current breath.
 45. The method of claim 44 wherein the recording in m) comprises: p) determining an upper breath rate threshold value; q) determining a lower breath rate threshold value; r) identifying when a previous slope of a previous valve step position change is negative during the previous breathing cycle; s) monitoring the valve step position as it becomes less than the upper breath rate threshold value during the previous breathing cycle; and t) recording the start time for the current breath after the valve step position becomes less than the lower breath rate threshold value.
 46. The method of claim 45 wherein the determining in p) comprises: u) calculating the upper breath rate threshold value by adding a predetermined percentage of the median valve step position to the median valve step position.
 47. The method of claim 45 wherein the determining in q) comprises: u) calculating the lower breath rate threshold value by subtracting a predetermined percentage of the median valve step position from the median valve step position.
 48. The method of claim 44 wherein the recording in n) comprises: p) determining an upper breath rate threshold value; q) determining a lower breath rate threshold value; r) identifying when a current slope of a current valve step position change is negative during the current breathing cycle; s) monitoring the valve step position as it becomes less than the upper breath rate threshold value during the current breathing cycle; and t) recording an end time for the current breath after the valve step position becomes less than the lower breath rate threshold value during the current breathing cycle.
 49. The method of claim 43 wherein the determining in i) comprises: m) identifying a present valve step position; and n) calculating the median valve step position by adding a first predetermined percentage of the present valve step position to a second predetermined percentage of a previous median valve step position, wherein a sum of the first and second predetermined percentages is one.
 50. The method of claim 43 wherein the determining in j) comprises: m) determining an inhalation threshold; n) after the changing valve step position exceeds the inhalation threshold, identifying a highest valve step position between a present valve step position and one or more previous valve step positions; and o) if the highest valve step position does not change for a predetermined peak valve step time, identifying the highest valve step position as the peak valve step position.
 51. The method of claim 50 wherein the determining in m) comprises: p) determining a difference between the peak valve step position and the median valve step position; q) determining a product of the determined difference and a predetermined inhalation scaling factor; and r) adding the determined product to the median valve step position.
 52. The method of claim 43 wherein the calculating in l) comprises: m) determining a difference between the peak valve step position and the median valve step position; n) determining a product of the determined difference and the predetermined percentage unloading factor; and o) adding the determined product to the median valve step position.
 53. The method of claim 36 wherein the changing in d) comprises: f) determining a second predetermined sensed parameter value; g) setting a decrease timer to a predetermined unload time; h) determining a sequence of predetermined sensed parameter values for the second portion of the current breathing cycle based at least in part on the first and second predetermined sensed parameter values; and i) changing the control parameter based at least in part on the sequence of predetermined sensed parameter values until the decrease timer is expired.
 54. The method of claim 51 wherein the flow/pressure control element is a variable position valve, the control parameter is a valve step position, the first predetermined sensed parameter value is a prescribed pressure, the second predetermined sensed parameter value is an unload pressure, and the determining in f) comprises: j) determining a peak valve step position; k) determining a median valve step position; l) calculating a pressure offset by subtracting the median valve step position from the peak valve step position to obtain a first intermediate result, multiplying the first intermediate result by a first constant to obtain a second intermediate result, and multiplying the second intermediate result by the prescribed pressure; and m) calculating the unload pressure by subtracting the pressure offset from the prescribed pressure.
 55. The method of claim 36 wherein the changing in e) comprises: f) determining a second predetermined sensed parameter value; g) setting an increase timer to a predetermined load time; h) determining a sequence of predetermined sensed parameter values for the third portion of the current breathing cycle based at least in part on the first and second predetermined sensed parameter values; and i) changing the control parameter based at least in part on the sequence of predetermined sensed parameter values until the increase timer is expired.
 56. A method of providing a breathing gas comprising: a) sensing a breathing gas pressure associated with delivery of the breathing gas; b) changing a valve step position associated with a variable position valve in response to a difference between the sensed breathing gas pressure and a first predetermined breathing gas pressure value during a first portion of a current breathing cycle; c) determining a transition from the first portion to a second portion of the current breathing cycle based at least in part on the changing valve step position; d) changing the valve step position to cause a first change in the breathing gas pressure during the second portion of the current breathing cycle based at least in part on the determined transition; and e) changing the valve step position to cause a second change in the breathing gas pressure during a third portion of the current breathing cycle based at least in part on the first predetermined breathing gas pressure value.
 57. The method of claim 56 wherein the changing in b) comprises: f) determining a valve step error based at least in part on the sensed parameter and the first predetermined sensed parameter value; and g) changing the control parameter to minimize the valve step error.
 58. The method of claim 56 wherein determining in c) comprises: f) determining the unload threshold value; and g) determining whether the changing valve step position is less than the unload threshold value.
 59. The method of claim 56 wherein the changing in d) comprises: f) determining a second predetermined breathing gas pressure value; g) setting a decrease timer to a predetermined unload time; h) determining a sequence of predetermined breathing gas pressure values for the second portion of the current breathing cycle based at least in part on the first and second predetermined breathing gas pressure values; and i) changing the valve step position based at least in part on the sequence of predetermined breathing gas pressure values until the decrease timer is expired.
 60. The method of claim 56 wherein the changing in e) comprises: f) determining a second predetermined breathing gas pressure value; g) setting an increase timer to a predetermined load time; h) determining a sequence of predetermined breathing gas pressure values for the third portion of the current breathing cycle based at least in part on the first and second predetermined breathing gas pressure values; i) changing the valve step position based at least in part on the sequence of predetermined breathing gas pressure values until the increase timer is expired.
 61. A system for providing a breathing gas comprising: a flow path adapted to receive a patient interface; a blower in fluidic communication with the flow path; a variable position valve in fluidic communication with the flow path; a pressure sensor disposed to detect a pressure associated with delivery of breathing gas to the patient interface; and a controller in operative communication with the pressure sensor, blower, and variable position valve, wherein the controller controls the variable position valve to provide the breathing gas: i) at a first breathing gas pressure during a first portion of a patient breathing cycle, ii) at a second breathing gas pressure during a second portion of the patient breathing cycle, and iii) at the first breathing gas pressure during a third portion of the patient breathing cycle.
 62. The system of claim 61 wherein the variable position valve selectively diverts breathing gas from the flow path.
 63. The system of claim 62 wherein the variable position valve directs the diverted breathing gas to a non-ambient input associated with the blower.
 64. The system of claim 61 wherein the first portion of the patient breathing cycle is associated with an inhalation state.
 65. The system of claim 61 wherein the second portion of the patient breathing cycle is associated with an unload portion of an exhalation state.
 66. The system of claim 61 wherein the third portion of the patient breathing cycle is associated with a load portion of an exhalation state.
 67. A method of providing a breathing gas to a patient comprising: controlling a valve position to output a first target gas pressure level to the patient during at least a portion of the patient's inhalation breathing state; monitoring an actual gas pressure level output to the patient; determining a valve position setting based on the monitored gas pressure level; determining a valve position setting threshold; determining at least a second target gas pressure level that is less than the first target gas pressure level; if the valve position setting falls below the valve position setting threshold, controlling the valve position to output the second target gas pressure level to the patient for a predetermined time period during at least a first portion of the patient's exhalation breathing state; and controlling the valve position to output the first target gas pressure level to the patient after the predetermined time period has expired during at least a second portion of the patient's exhalation breathing state.
 68. The method of claim 67 wherein determining a valve position threshold comprises determining a difference between at least a peak valve position and a median valve position and determining a patient breathing rate.
 69. The method of claim 67 wherein determining at least a second target gas pressure level that is less than the first target gas pressure level comprises lowering the at least first target pressure by a quantity based at least in part on valve position.
 70. The method of claim 67 wherein controlling the valve position to output the second target gas pressure level to the patient for a predetermined time period during at least a first portion of the patient's exhalation breathing state comprising outputting at least the second target gas pressure level at the onset of exhalation for a predetermined time period.
 71. The method of claim 67 wherein controlling the valve position to output the second target gas pressure level to the patient for a predetermined time period during at least a first portion of the patient's exhalation breathing state comprises determining a plurality of decrease target gas pressure levels between the first target gas pressure level and the second target gas pressure level.
 72. The method of claim 67 wherein controlling the valve position to outputt the first target gas pressure level to the patient after the predetermined time period has expired comprises determining a plurality of increase target gas pressure levels between the second target gas pressure level and the first target gas pressure level.
 73. The method of claim 67 wherein determining a valve position setting based on the monitored gas pressure level comprises comparing the first target gas pressure level to the monitored gas pressure level. 